<ul class="table-of-contents">
<li><a href="#content-a-level-2-heading-to-start">A level 2 heading to start</a>
<ul>
<li><a href="#content-followed-by-a-level-4">Followed by a level 4</a></li>
</ul>
</li>
<li><a href="#content-then-a-level-1">Then a level 1</a>
<ul>
<li><a href="#content-and-another-level-2">And another level 2</a>
<ul>
<li><a href="#content-then-a-level-5">Then a level 5</a>
<ul>
<li><a href="#content-then-a-level-6">Then a level 6</a></li>
</ul>
</li>
<li><a href="#content-then-a-level-5-1">Then a level 5</a>
<ul>
<li><a href="#content-then-a-level-6-1">Then a level 6</a></li>
</ul>
</li>
</ul>
<ul>
<li><a href="#content-and-then-a-level-3">And then a level 3</a>
<ul>
<li><a href="#content-then-a-level-5-2">Then a level 5</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#content-then-a-level-2">Then a level 2</a>
<ul>
<li><a href="#content-followed-by-a-level-6">Followed by a level 6</a></li>
</ul>
<ul>
<li><a href="#content-then-another-level-3">Then another level 3</a>
<ul>
<li><a href="#content-then-level-5">Then level 5</a></li>
</ul>
<ul>
<li><a href="#content-level-4">Level 4</a></li>
</ul>
</li>
<li><a href="#content-level-3">Level 3</a></li>
</ul>
</li>
<li><a href="#content-level-2">Level 2</a>
<ul>
<li><a href="#content-level-4-1">Level 4</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#content-now-for-some-normal-headings-to-test-going-up-and-down-the-stack">Now for some &quot;normal&quot; headings to test going up and down the stack</a></li>
<li><a href="#content-section-1">Section 1</a>
<ul>
<li><a href="#content-section-11">Section 1.1</a>
<ul>
<li><a href="#content-section-111">Section 1.1.1</a>
<ul>
<li><a href="#content-section-1111">Section 1.1.1.1</a>
<ul>
<li><a href="#content-section-11111">Section 1.1.1.1.1</a>
<ul>
<li><a href="#content-section-111111">Section 1.1.1.1.1.1</a></li>
</ul>
</li>
<li><a href="#content-section-11112">Section 1.1.1.1.2</a></li>
</ul>
</li>
<li><a href="#content-section-1112">Section 1.1.1.2</a></li>
</ul>
</li>
<li><a href="#content-section-112">Section 1.1.2</a></li>
</ul>
</li>
<li><a href="#content-section-12">Section 1.2</a></li>
</ul>
</li>
<li><a href="#content-section-2">Section 2</a></li>
</ul>
<p>Here's a sample Markdown document with weird headings</p>
<h2><a id="content-a-level-2-heading-to-start" href="#content-a-level-2-heading-to-start" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>A level 2 heading to start</h2>
<h4><a id="content-followed-by-a-level-4" href="#content-followed-by-a-level-4" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Followed by a level 4</h4>
<h1><a id="content-then-a-level-1" href="#content-then-a-level-1" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Then a level 1</h1>
<h2><a id="content-and-another-level-2" href="#content-and-another-level-2" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>And another level 2</h2>
<h5><a id="content-then-a-level-5" href="#content-then-a-level-5" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Then a level 5</h5>
<h6><a id="content-then-a-level-6" href="#content-then-a-level-6" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Then a level 6</h6>
<h5><a id="content-then-a-level-5-1" href="#content-then-a-level-5-1" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Then a level 5</h5>
<h6><a id="content-then-a-level-6-1" href="#content-then-a-level-6-1" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Then a level 6</h6>
<h3><a id="content-and-then-a-level-3" href="#content-and-then-a-level-3" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>And then a level 3</h3>
<h5><a id="content-then-a-level-5-2" href="#content-then-a-level-5-2" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Then a level 5</h5>
<h2><a id="content-then-a-level-2" href="#content-then-a-level-2" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Then a level 2</h2>
<h6><a id="content-followed-by-a-level-6" href="#content-followed-by-a-level-6" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Followed by a level 6</h6>
<h3><a id="content-then-another-level-3" href="#content-then-another-level-3" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Then another level 3</h3>
<h5><a id="content-then-level-5" href="#content-then-level-5" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Then level 5</h5>
<h4><a id="content-level-4" href="#content-level-4" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Level 4</h4>
<h3><a id="content-level-3" href="#content-level-3" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Level 3</h3>
<h2><a id="content-level-2" href="#content-level-2" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Level 2</h2>
<h4><a id="content-level-4-1" href="#content-level-4-1" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Level 4</h4>
<h1><a id="content-now-for-some-normal-headings-to-test-going-up-and-down-the-stack" href="#content-now-for-some-normal-headings-to-test-going-up-and-down-the-stack" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Now for some &quot;normal&quot; headings to test going up and down the stack</h1>
<h1><a id="content-section-1" href="#content-section-1" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Section 1</h1>
<h2><a id="content-section-11" href="#content-section-11" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Section 1.1</h2>
<h3><a id="content-section-111" href="#content-section-111" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Section 1.1.1</h3>
<h4><a id="content-section-1111" href="#content-section-1111" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Section 1.1.1.1</h4>
<h5><a id="content-section-11111" href="#content-section-11111" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Section 1.1.1.1.1</h5>
<h6><a id="content-section-111111" href="#content-section-111111" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Section 1.1.1.1.1.1</h6>
<h5><a id="content-section-11112" href="#content-section-11112" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Section 1.1.1.1.2</h5>
<h4><a id="content-section-1112" href="#content-section-1112" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Section 1.1.1.2</h4>
<h3><a id="content-section-112" href="#content-section-112" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Section 1.1.2</h3>
<h2><a id="content-section-12" href="#content-section-12" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Section 1.2</h2>
<h1><a id="content-section-2" href="#content-section-2" class="heading-permalink" aria-hidden="true" title="Permalink">¶</a>Section 2</h1>
